8d9b84
@@ -582,9 +582,9 @@
private void moveTaskOutputs(FileSystem fs, Path file, Path srcDir,
 
             final Path parentDir = finalOutputPath.getParent();
             // Create the directory
-            Path placeholder = new Path(parentDir, "_placeholder");
+            Path placeholder = new Path(parentDir, "_placeholder" + String.valueOf(Math.random()));
             if (fs.mkdirs(parentDir)) {
-              // It is weired but we need a placeholder, 
+              // It is weird but we need a placeholder,
               // otherwise rename cannot move file to the right place
               fs.create(placeholder).close();
             }
